<div class="width-100">
    <es-header [title]="'流程列表'" [class]="'workflow'"></es-header>
</div>
<div class="page-background">
    <div class="page-container">
    <div class="width-100 approve-buttons">
            <div class="left">
                当前已经选择 {{nowCheckList.length}} 项
            </div>
            <div class="right">
                <div class="icon1" (click)="approve(true, nowCheckList, 1)">流程定义</div>
                <div class="icon2" (click)="approve(false, nowCheckList)">流程启用</div>
                <div class="icon3" (click)="approve(true, nowCheckList, 1)">流程停用</div>
            </div>
            <div class="clearfix"></div>
        </div>
        <div id="pdf">
            <es-table [headers]="headers" (sortEvent)="sortEvent($event)" (checkEvent)="checkChange($event)" [checkBox]="true" [datas]="datas"
                #table>
                <ng-template let-data>
                    <es-table-column [header]="data.h" [data]="data.d" [field]="'id'">
                        <div class="name" (click)="openSlider(data.d)">{{data.d.id}}</div>
                    </es-table-column>
                    <es-table-column [header]="data.h" [data]="data.d" [field]="'name'">
                        <div>{{data.d.name}}</div>
                    </es-table-column>
                    <es-table-column [header]="data.h" [data]="data.d" [field]="'processKey'">
                        <div>{{data.d.processKey}}</div>
                    </es-table-column>
                    <es-table-column [header]="data.h" [data]="data.d" [field]="'status'">
                        <div>{{data.d.status}}</div>
                    </es-table-column>
                    <es-table-column [header]="data.h" [data]="data.d" [field]="'comment'">
                        <div>{{data.d.comment}}</div>
                    </es-table-column>
                    <es-table-column [header]="data.h" [data]="data.d" [field]="'createTime'">
                        <div>{{data.d.createTime}}</div>
                    </es-table-column>
                    <es-table-column [header]="data.h" [data]="data.d" [field]="'creator'">
                        <div>{{data.d.creator}}</div>
                    </es-table-column>
                </ng-template>
            </es-table>
        </div>
        <div class="pagination">
            <pagination [total]='totalCount' [(nowPage)]="nowPage" [pageSize]='pageSize' (paginationEvent)="paginationChange()"></pagination>
        </div>
    </div>
</div>